#ifndef LOGINWIDGET_H
#define LOGINWIDGET_H

#include <QWidget>
#include <QLineEdit>
#include <QLabel>
#include <QGridLayout>
#include <QPushButton>
#include "toast.h"
#include "model/datacenter.h"
#include "mainWidget.h"
#include "verifycodewidget.h"


class LoginWidget : public QWidget
{
    Q_OBJECT
public:
    explicit LoginWidget(QWidget *parent = nullptr);
    void switchMode();
    void userLoginDone();
    void userRegisterDone();
private:
    bool isLoginMod = true;
    QLabel* titleTag;
    QPushButton* submitBtn;
    QPushButton* switchModBtn;
    QPushButton* switchPhoneModBtn;

    QLineEdit* nameEidt;
    QLineEdit* pswdEidt;
    QLineEdit* verifyCodeEidt;
    VerifyCodeWidget* verifyCodeWidget;
signals:
};

#endif // LOGINWIDGET_H
